config := googleProviderConfig(t)

url, err := replaceVarsForTest(config, rs, "{{IAMBetaBasePath}}projects/{{project}}/locations/global/workloadIdentityPools/{{workload_identity_pool_id}}/providers/{{workload_identity_pool_provider_id}}")
if err != nil {
  return err
}

res, err := sendRequest(config, "GET", "", url, config.userAgent, nil)
if err != nil {
  return nil
}

if v := res["state"]; v == "DELETED" {
	return nil
}

return fmt.Errorf("IAMBetaWorkloadIdentityPoolProvider still exists at %s", url)
